import request from '@/utils/request'

// 查询发票列表
export function receiptList (query) {
  return request({
    url: '/trade/receipt',
    method: 'get',
    params: query
  })
}

//提交开票信息
export function invoicing(id, data){
  return request({
    url: `/trade/receipt/${id}/invoicing`,
    method: 'put',
    data: data
  })
}

//审核开票信息
export function review(id, data){
  return request({
    url: `/trade/receipt/${id}/review`,
    method: 'put',
    data: data
  })
}
